﻿@model KpBusiness.Model.Company

@{
    ViewBag.Title = "Edit";
}

<h1 >Edit Comapany Information</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)


       

           <fieldset>
         @Html.HiddenFor(model => model.CompanyId)
        <div class="left-div">
        <div class="editor-label">
            @Html.LabelFor(model => model.CompanyName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.CompanyName, new { tabindex = 1 })<br />
            @Html.ValidationMessageFor(model => model.CompanyName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Location)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Location, new { tabindex = 3 })<br />
            @Html.ValidationMessageFor(model => model.Location)
        </div>
        </div>
        <div class="right-div">

        

        <div class="editor-label">
            @Html.LabelFor(model => model.Website)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Website, new { tabindex = 2 })<br />
            @Html.ValidationMessageFor(model => model.Website)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LogoUrl)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.LogoUrl, new { tabindex = 4 })<br />
            @Html.ValidationMessageFor(model => model.LogoUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsActive)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsActive)<br />
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>
        </div>
        <div class="clear"></div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
